package com.gray.blog.arg.sys;

import com.gray.blog.common.arg.BaseArg;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * Created  By zhoux 2018/10/31
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class AddSysUserArg extends BaseArg{

    @ApiModelProperty(value = "登录名")
    @NotNull
    private String loginName;

    @ApiModelProperty(value = "密码")
    @NotNull
    private String password;

    @ApiModelProperty(value = "邮箱")
    @Email
    @NotNull
    private String email;

    @ApiModelProperty(value = "手机")
    @NotNull
    private String phone;

    @ApiModelProperty(value = "头像")
    private String headPhoto;
}
